Purpose
The arrayConcat task is used to combine the elements of one array with another. The array that returns will contain copies of all the elements combined from the original two arrays. Essentially, this task does not change the original arrays, but returns a new array, containing the values of the joined arrays.
Potential Use Case
The arrayConcat copies object references into a new array. If you have two datasets and want to combine them into one, then you could use the arrayConcat task.
Properties
Input and output parameters are shown below.
Incoming | Type | Required | Description |
---|---|---|---|
arr |
Array | Yes | The first array to concatenate. |
arrayN |
Array | Yes | The array to concatenate into a new array. |
Outgoing | Type | Description |
---|---|---|
combinedArray |
Array | A new array, representing the joined array. |
Example
In this example, the arr
Reference variable is given as ["a", "b", "c"] and the arrayN
Reference variable is ["d", "e", f].
Once the task runs, the new combinedArray
will be ["a", "b", "c", "d", "e", "f"].